Replication material for 

"Does Counter-Mobilization Contain Right-Wing Populist Movements? Evidence from Germany"

by Johannes Vüllers and Sebastian Hellmeier

forthcoming in European Journal of Political Research

This folder contains data and Rscripts required to replicate all tables and figures in the main article and online supplementary material. All generated figures and tables will be saved in the folder "output".

All analyses were carried out in R (see session Info below). Please open the .Rproj file to make sure that wokring directories are set properly.

Please direct inquiries to Sebastian Hellmeier (sebastian.hellmeier@uni-konstanz.de).

Data files: 

* file "weekly_events_desc.Rda" is the data file that is used for descriptive plots (Figure 1). 

* file "pegida_history.Rda" is the data file that is used for the survival analysis in Table 2.

* file "pegpad_waves.Rda" is the data file that is used for the conditional logistic regressions in Table 4.

* file "pegpad_waves_2weeks.Rda" is the data file that is used for the additional conditional logistic regressions in Table A.6. It uses an alternative definition of waves/cycles (2 weeks threshold).

* file "pegpad_waves_8weeks.Rda" is the data file that is used for the additional conditional logistic regressions in Table A.6. It uses an alternative definition of waves/cycles (8 weeks threshold).

* file "daily_events.Rda" contains participant numbers for events displayed in Figure 3.

Rscripts:

* file "01_descriptives" generates Figures 1 - 4
* file "01_analysis" generates Figures all tables (except for Table 1) and Figure 5 as well as Figure A1, A2 and A3.


R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] sjPlot_2.8.4.9000 lmtest_0.9-38     zoo_1.8-8         texreg_1.37.5     plm_2.2-5         survminer_0.4.6  
 [7] survival_3.2-3    ggpubr_0.2.4      magrittr_2.0.1    lubridate_1.7.9.2 forcats_0.5.0     stringr_1.4.0    
[13] dplyr_1.0.4       purrr_0.3.4       readr_1.4.0       tidyr_1.1.2       tibble_3.0.6      tidyverse_1.3.0  
[19] ggplot2_3.3.3    

loaded via a namespace (and not attached):
 [1] nlme_3.1-140      fs_1.4.1          insight_0.9.0     httr_1.4.2        tools_3.6.1       backports_1.1.10 
 [7] R6_2.5.0          sjlabelled_1.1.6  DBI_1.1.0         colorspace_2.0-0  withr_2.4.1       tidyselect_1.1.0 
[13] gridExtra_2.3     emmeans_1.5.0     compiler_3.6.1    performance_0.4.8 cli_2.3.0         rvest_0.3.6      
[19] xml2_1.3.2        sandwich_3.0-0    bayestestR_0.7.2  scales_1.1.1.9000 survMisc_0.5.5    mvtnorm_1.1-1    
[25] digest_0.6.27     minqa_1.2.4       pkgconfig_2.0.3   lme4_1.1-23       dbplyr_1.4.3      rlang_0.4.10     
[31] readxl_1.3.1      rstudioapi_0.13   generics_0.1.0    jsonlite_1.7.2    Formula_1.2-4     parameters_0.8.2 
[37] Matrix_1.2-17     Rcpp_1.0.6        munsell_0.5.0     lifecycle_0.2.0   stringi_1.5.3     multcomp_1.4-13  
[43] gbRd_0.4-11       MASS_7.3-51.4     grid_3.6.1        bdsmatrix_1.3-4   sjmisc_2.8.5      crayon_1.4.1     
[49] lattice_0.20-38   ggeffects_0.15.1  haven_2.3.1       splines_3.6.1     sjstats_0.18.0    hms_1.0.0        
[55] knitr_1.29        pillar_1.4.7      boot_1.3-22       estimability_1.3  ggsignif_0.6.0    effectsize_0.3.2 
[61] codetools_0.2-16  reprex_0.3.0      glue_1.4.2        data.table_1.13.6 modelr_0.1.8      nloptr_1.2.2.2   
[67] vctrs_0.3.6       Rdpack_2.1        miscTools_0.6-26  cellranger_1.1.0  gtable_0.3.0      km.ci_0.5-2      
[73] assertthat_0.2.1  xfun_0.19         rbibutils_2.0     xtable_1.8-4      broom_0.7.2       coda_0.19-3      
[79] KMsurv_0.1-5      maxLik_1.4-6      statmod_1.4.34    TH.data_1.0-10    ellipsis_0.3.1  